﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using Abp.AutoMapper;
using Abp.Domain.Entities;

namespace FwProject.Distribution.Dto
{
    [AutoMap(typeof(DistributionLine))]
    public class DistributionLineInput
    {
        [Display(Name ="所属工厂")]
        public Guid? FactoryInfoid { get; set; }
        /// <summary>
        /// 线路名称
        /// </summary>
        [Required]
        [Display(Name ="线路名称")]
        public string LineName { get; set; }
        /// <summary>
        /// 是否启用
        /// </summary>
        [Display(Name = "是否启用")]
        public bool IsDiscontinuation { get; set; } = true;

        public List<DriverDto> Drivers { get; set; }
    }
    public class DriverDto : Entity<long>
    {
        public long DriverId { get; set; }
    }
}
